// author : sb hwang
// date : 2012.05.14 
// program main ;
//
//

#include <stdio.h>
#include <pthread.h>
#include "drawbmp.h"
#include "touch.h"

void *thread_touchControl(void* arg)
{
	touchControl_main(arg);	
};
int main(int argc, char *argv[])
{
	pthread_t t_id;
	int param = 5;
	//1. UI create/initial
	updateScreen(0);
	//2. Touch-control create/initial
	createTouchHandle(argc, argv);

	if(pthread_create(&t_id, NULL, thread_touchControl, (void*)&param) != 0)
	{
		printf("pthread_create() :  Touch Screen Control , error");
		return -1;
	}


	//3. main process start
	while(1)
	{
		//sleep(1);
		//printf("%d",getMode());
		updateScreen(getMode());
		//if exit?
		//printf("Main Processing...%d\r\n",param++);

		//break;
	}

	return 1;
}
